import requests
from common import conf


def send_qq_message(to_user, message):  # 用于发送消息的函数
    params = dict()
    params['user_id'] = to_user
    params['message'] = message
    cqa = conf.get("cqa", "url")
    return requests.get(cqa + "send_private_msg/", params=params)
